<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'vehicle.label', default: 'Vehicle')}"/>
    <title>催收安排</title>
</head>

<body>
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li>PLS CINDATA</li>
                    <li class="active">
                        <span>催收安排</span>
                    </li>
                </ol>
            </div>

            <h2 class="font-light m-b-xs">

            </h2>
        </div>
    </div>
</div>

<g:if test="${flash.message}">
    <div class="message alert alert-info" role="status">${flash.message}</div>
</g:if>
<g:hasErrors bean="${this.menu}">
    <ul class="errors" role="alert">
        <g:eachError bean="${this.menu}" var="error">
            <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message
                    error="${error}"/></li>
        </g:eachError>
    </ul>
</g:hasErrors>

<div class="content animate-panel">
    <div class="row">
        <div class="hpanel hblue">
            <div class="panel-heading">
                催收安排
            </div>

            <div class="panel-body form-horizontal">
                <!-- <div class="form-group">
                    <label class="col-md-5 control-label ">借款人：</label>
                    <div class="col-md-3">
                        <g:textField class="form-control" type="text" name="borrName" id="borrName" value="${mortgage?.borrName}" readonly="true"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-md-5 control-label ">借款人联系方式：</label>
                    <div class="col-md-3">
                        <g:textField class="form-control m-b" name="borrPhone" id="borrPhone"  value="${mortgage?.borrPhone}" readonly="true"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-5 control-label ">借款人家庭地址：</label>
                    <div class="col-md-3">
                        <g:textField class="form-control m-b" name="borrAddress" id="borrAddress"  value="${mortgage?.borrAddress}" readonly="true"/>
                    </div>
                </div>

                <div class="form-group">

                    <label class="col-md-5 control-label ">贷款编号：</label>
                    <div class="col-md-3">
                        <g:textField class="form-control m-b" name="serialNumber" id="serialNumber"  value="${mortgage?.serialNumber}" readonly="true"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-5 control-label ">催收开始时间：</label>
                    <div class="col-md-3">
                        <g:textField class="form-control m-b" name="startTime" id="startTime"  value="${riskWarning?.startTime}" readonly="true"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-md-5 control-label ">催收结束时间：</label>
                    <div class="col-md-3">
                        <g:textField class="form-control m-b" name="endTime" id="endTime"  value="${riskWarning?.endTime}" readonly="true"/>
                    </div>

                </div>
                <div class="form-group">
                    <label class="col-md-5 control-label ">催收措施：</label>
                    <div class="col-md-3">
                        <g:textField class="form-control m-b" name="disposalMethod" id="disposalMethod"  value="${riskWarning?.disposalMethod?.name}" readonly="true"/>
                    </div>
                </div> -->

                <g:form action="mortgageWarningDisposalAsignSave" resource="${this?.riskWarning}">
                
                    <g:textField class="form-control hidden" type="text" name="targetUri" id="targetUri" value="${params.targetUri}"/>

                    <div class="form-group">
                        <label class="col-md-5 control-label is-required">催收负责人</label>
                        <div class="col-md-3">
                            <g:select class="form-control" name="disposalUser" id="disposalUser" optionKey="id" optionValue="fullName" from="${com.cindata.User.findAllByDepartment(com.cindata.User.findById(session.SPRING_SECURITY_CONTEXT.authentication.principal.id)?.department)}" value="${this?.riskWarning?.disposalUser?.id}" noSelection="${['': '请选择']}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-5 control-label is-required">催收要求说明</label>
                        <div class="col-md-3">
                            <g:textArea  name="description" id="description"  value="${riskWarning?.description}" class="form-control textarea" rows="5" cols="5"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-md-2 col-md-offset-6">
                            <g:submitButton class="btn btn-info" name="update" value="保存"/>
                        </div>
                    </div>
                </g:form>
            </div>
        </div>
    </div>
</div>

</body>
</html>
